package cn.edu.hbwe.book.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class Orders {
	private String id;//订单id
	private double money;//金额
	private String receieverName;//收货人姓名
	private String receieverAddress;//收货人地址
	private String receieverPhone;//收货人电话
	private String orederState;//订单状态
	private Date orderTime;//订单日期
	private User user;//用户
	
	private List<OrderItem> orderItems = new ArrayList<OrderItem>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getReceieverName() {
		return receieverName;
	}

	public void setReceieverName(String receieverName) {
		this.receieverName = receieverName;
	}

	public String getReceieverAddress() {
		return receieverAddress;
	}

	public void setReceieverAddress(String receieverAddress) {
		this.receieverAddress = receieverAddress;
	}

	public String getReceieverPhone() {
		return receieverPhone;
	}

	public void setReceieverPhone(String receieverPhone) {
		this.receieverPhone = receieverPhone;
	}

	public String getOrederState() {
		return orederState;
	}

	public void setOrederState(String orederState) {
		this.orederState = orederState;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<OrderItem> getOrderItems() {
		return orderItems;
	}

	public void setOrderItems(List<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}

	@Override
	public String toString() {
		return "Orders [id=" + id + ", money=" + money + ", receieverName=" + receieverName + ", receieverAddress="
				+ receieverAddress + ", receieverPhone=" + receieverPhone + ", orederState=" + orederState
				+ ", orderTime=" + orderTime + ", user=" + user + ", orderItems=" + orderItems + "]";
	}
	
	
}
